# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
pkgname=sqm-scripts
pkgver=1.5.1
pkgrel=0
pkgdesc="SQM scripts traffic shaper"
url="https://github.com/tohojo/sqm-scripts"
arch="noarch"
license="GPL-2.0-only"
depends="iproute2 iptables ip6tables"
makedepends="coreutils"
source="$pkgname-$pkgver.tar.gz::https://github.com/tohojo/sqm-scripts/archive/v$pkgver.tar.gz"

package() {
	install -m 0755 -d $pkgdir/etc/network/if-up.d
	make DESTDIR="$pkgdir" install

	rm -rf "$pkgdir"/usr/lib/tmpfiles.d
	rm -rf "$pkgdir"/sqm@.service
}

sha512sums="
b071b4be079d2ad51c9fdb98b4f582ec3008321866e8b1cf482545c72e24198e0324ff25872bc1591226a215a9428b82a463e6269c6053ef4f273e5eff9fab59  sqm-scripts-1.5.1.tar.gz
"
